<ul class="my_product_ul">
    <li id="my_center"><a href="${ctx}/member/center"><i class="icon_menu im_zhzx"></i>账户中心</a>
    </li>
    <li id="my_product"><a href="${ctx}/member/product"><i class="icon_menu im_wdlc"></i>我的理财</a></li>
    <li id="my_account_record"><a href="${ctx}/member/myAccount"><i class="icon_menu im_zhjl"></i>交易记录</a>
    </li>
    <li id="my_integral_record"><a href="${ctx}/member/myIntegral"><i class="icon_menu im_zhjl"></i>积分记录</a>
    </li>
    <li><a href="#"><i class="icon_menu im_wdlw"></i>我的礼物</a></li>
    <li><a href="#"><i class="icon_menu im_wdkb"></i>我的卡包</a></li>
    <li id="my_invite"><a href="${ctx}/member/myInvitation"><i class="icon_menu im_wdyq"></i>我的邀请</a></li>
    <li id="my_message"><a href="${ctx}/member/myMessage"><i class="icon_menu im_wdxx"></i>我的消息<#if messages?? && messages&gt;0><span class="red">(${messages})</span></#if></a></li>
    <li id="account_settings"><a href="${ctx}/member/account/accountSettings"><i class="icon_menu im_zhsz"></i>账户设置</a>
    <li id="my_boards"><a href="${ctx}/member/boards"><i class="icon_menu im_zhsz"></i>私人定制</a>
    </li>
</ul>

<script type="text/javascript">
    $(function () {
        //当前的页面
        var val = $("section.my_product").attr("l_id");
        var p_val = $("section.my_product").attr("p_id");
        $("ul.my_product_ul").find("li#" + val).addClass("current");

        //顶部选中
        $("ul").find("li#"+p_val).addClass("curent");

    });
</script>

